package com.pz.gulimall.order.feign;

import com.pz.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@FeignClient("gulimall-product")
public interface ProductFeign {
    @PostMapping("/product/skuinfo/list/getSpuBrandSku")
    R skuInfo(@RequestBody List<Long> skuIds);

    @GetMapping("/product/skusaleattrvalue/getSaleAttr/{skuId}")
     R getSaleAttr(@PathVariable("skuId") Long skuId);

    @PostMapping("/product/skusaleattrvalue/getSaleAttrBatch")
    R getSaleAttrBatch(@RequestBody List<Long> skuIds);

    @RequestMapping("/product/spuinfo/info/{id}")
    R supInfo(@PathVariable("id") Long id);
}
